package com.ln.asset.core.controller.admin;


import com.ln.asset.common.result.R;
import com.ln.asset.core.pojo.TUser;
import com.ln.asset.core.service.TUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wuwenzhe
 * @since 2022-04-24
 */
@Api(tags = "全查")
@RestController
@RequestMapping("/admin/core/borrowInfo")
@Slf4j
public class TUserController {

    @Resource
    private TUserService tUserService;

    @ApiOperation("借款信息列表")
    @GetMapping("/list")
    public R list() {
        List<TUser> list = tUserService.list();
        return R.ok().data("list", list);
    }

}

